/*
 * NodeAuxiliar.cpp
 *
 *  Created on: 13/11/2008
 *      Author: Thiago A. L. Genez
 */

#include "NodeAuxiliar.h"

NodeAuxiliar::NodeAuxiliar() {
	this->isNot = false;
	this->enumeracaoParametro = -1;
	this->isReferenca = 2;
	this->isRecursivo = false;
}

NodeAuxiliar::~NodeAuxiliar() {
}

void NodeAuxiliar::show(NodeAuxiliar* node) {
	cout << " " << node->conteudo;

	if (!node->sons.empty()) {
		cout << "\n";

		list<NodeAuxiliar *>::iterator it;

		for (it = node->sons.begin(); it != node->sons.end(); it++) {
			show(*it);
		}
	}
}

bool NodeAuxiliar::operator == (string str)
{
	if (str.compare(this->conteudo) == 0) {
		return true;
	} else {
		return false;
	}
}

bool NodeAuxiliar::operator != (string str)
{
	if (str.compare(this->conteudo) != 0) {
		return true;
	} else {
		return false;
	}
}
